<template>
  <div class = "count2">
    <button @click = "name1 = '666' ">点击修改对象类型的props</button>
    <h1>{{name1}}</h1>
  </div>
</template>

<script>
export default {
  name: "Count2",
  props:["name1" , "name2" , "name3" , "name4"],
  methods: {
    
  },
}
</script>

<style>
.count2{
  background-color: hotpink;
  height: 250px;
}
</style>